package com.qiaofang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@EnableJpaAuditing
@EnableTransactionManagement
@MapperScan("com.qiaofang.mapper")
@EnableScheduling
public class ChannelBomcFacadeApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(ChannelBomcFacadeApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(ChannelBomcFacadeApplication.class, args);
    }

}